echo "Enter your database server address (localhost if on this machine):"
read s_addr
echo "Enter your database username:"
read s_uname
echo "Enter the password for $s_uname":
read s_pword
echo "Enter a name for the database where Alphonse will store information:"
read s_db

echo "Address:  $s_addr"
echo "Username: $s_uname"
echo "Password: $s_pword"
echo "Database: $s_db"
echo "A constants.php file will be created in this directory. Please move it to ../forum/core/catabase"
echo "DO NOT CHECK THIS IN TO SVN."

echo "<?PHP
class DatabaseConstants
{
	const DATABASE_HOST = '$s_addr';
	const DATABASE_USER = '$s_uname';
	const DATABASE_PASSWORD = '$s_pword';
	const DATABASE_NAME = '$s_db';
}
?>" > constants.php